import http from '../utils/request'
// 获取资讯列表
const getMessageList = function(data){
    return http.get('/api/message/list',data)
};
// 删除
const delMessage = function(data) {
    return http.post('/api/del/message',data)
}
// 修改资讯状态
const messageChange = function(data) {
    return http.post('/api/message/change',data)
}
// 新增房源
const addMessage = function(data) {
    return http.post('/api/add/message',data)
}
// 编辑房源
const editMessage = function(data) {
    return http.post('/api/edit/message',data)
}
const districtsApi = {
    getMessageList,
    delMessage,
    messageChange,
    addMessage,
    editMessage
}

export default districtsApi